package dsk.demo.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import dsk.demo.product.dto.CustomerQueryDto;
import dsk.demo.product.entity.CustomerEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerDao extends BaseMapper<CustomerEntity> {
    IPage<CustomerEntity> getCustomerListByPage(Page<CustomerEntity> page, CustomerQueryDto dto);

    void insertBatch(@Param("collect") List<CustomerEntity> customerEntities);
}
